Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor build workflow #90

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Refactor build workflow #90

merged 1 commit into from
Jun 10, 2024

Conversation

webbnh
Copy link
Contributor

@webbnh webbnh commented Jun 10, 2024

Changes introduced with this PR

This PR refactors the build.yaml GitHub workflow:

  • moves the .github/scripts/gogenerate.sh to the arcaflow-reusable-workflows repo;
  • uses reusable workflows for linting, testing, and go generate;
  • renames the workflow file to .yaml to be consistent with other repos;
  • adds a trigger for v* tags;
  • obtains the Go version from the ARCALOT_GO_VERSION instead of hard-coding it.

Note: this PR depends on arcalot/arcaflow-reusable-workflows#21, so the CI won't run until that PR is merged (until such time, this PR will be a draft).


By contributing to this repository, I agree to the contribution guidelines.

Copy link

@dbutenhof dbutenhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(until such time, this PR will be a draft)

You neglected to act on that assertion, but in isolation this one looks fine. 😆

@webbnh webbnh marked this pull request as draft June 10, 2024 19:12
@webbnh
Copy link
Contributor Author

webbnh commented Jun 10, 2024

(until such time, this PR will be a draft)

You neglected to act on that assertion, but in isolation this one looks fine. 😆

Weird: I guess I clicked wrong on the warning dialog. (It's a draft, now.... 🙂)

@webbnh webbnh marked this pull request as ready for review June 10, 2024 20:33
@webbnh
Copy link
Contributor Author

webbnh commented Jun 10, 2024

Marking this ready for review (although, it already has two approvals). We just need to see the CI run...but neither making it ready for review nor posting this comment triggered the CI (which, maybe, is good?). So, I tweaked the commit message and force-pushed the branch to trigger the run.

- Use reusable workflows for linting, testing, and 'go generate'.
- Rename the workflow file to .yaml to be consistent with other repos.
@webbnh webbnh marked this pull request as draft June 10, 2024 20:40
@webbnh
Copy link
Contributor Author

webbnh commented Jun 10, 2024

Aaaaand, we're back to draft mode while I figure out how to deal with the fact that the gogenerate.sh script invocation is not in the context that I thought (or hoped?) it was.

@webbnh webbnh marked this pull request as ready for review June 10, 2024 21:42
@jaredoconnell jaredoconnell merged commit 1bb6a4c into main Jun 10, 2024
5 of 6 checks passed
@jaredoconnell jaredoconnell deleted the common-workflow branch June 10, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants